package Demo06;

import java.util.ArrayList;
import java.util.Random;

public class Demo06ArrayList {
    public static void main(String[] args) {
        Random r = new Random();
        ArrayList<Integer> list = new ArrayList<>();
        for(int i = 0; i < 6; ++i){
            int k= r.nextInt(33) + 1;
            list.add(k);
        }
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
